﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.Runtime.InteropServices;

namespace BesAsm.Emgaats.TracerUI
{
  [RunInstaller(true)]
  public partial class TracerInstaller : Installer
  {
    public TracerInstaller()
    {
      InitializeComponent();
    }

    public override void Install(System.Collections.IDictionary stateSaver)
    {
      base.Install(stateSaver);
      RegistrationServices regSrv = new RegistrationServices();
      regSrv.RegisterAssembly(base.GetType().Assembly,
        AssemblyRegistrationFlags.SetCodeBase);
    }

    public override void Uninstall(System.Collections.IDictionary savedState)
    {
      base.Uninstall(savedState);
      RegistrationServices regSrv = new RegistrationServices();
      regSrv.UnregisterAssembly(base.GetType().Assembly);
    }
  }
}
